package com.xiaodou.mjf.web.xface.user.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

public class TradeRecord {

	// 订单ID oid
	private String oid;
	// 产品编号 id
	private String id;
	// 产品名称 name
	private String name;
	// 购买金额 amount
	private Double amount;
	// 购买日期 purchase_date
	@JsonProperty("purchase_date")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date purchaseDate;
	// 交易状态 status
	private Integer status;
	// 分期期数 installments
	private Integer installments;
	// 已还期数 repaid_count
	@JsonProperty("repaid_count")
	private Integer repaidCount;
	//机构名称
	@JsonProperty("organization_name")
	private String organizationName;
	//机构电话	
	@JsonProperty("organization_phone")
	private String organizationPhone;
	//期数	
	private Integer term;	
	//贷款金额	
	@JsonProperty("loan_amount")
	private Double loanAmount;
	//首付金额	
	@JsonProperty("down_payment_deposit")
	private Double downPaymentDeposit;
	//首付比例	
	@JsonProperty("down_payment_scale")
	private String downPaymentScale;
	//每期还款	
	@JsonProperty("term_repaymen_amount")
	private Double termRepaymenAmount;



	public TradeRecord(String oid, String id, String name, Double amount,
			Date purchaseDate, Integer status, Integer installments,
			Integer repaidCount, String organizationName,
			String organizationPhone, Integer term, Double loanAmount,
			Double downPaymentDeposit, String downPaymentScale,
			Double termRepaymenAmount) {
		super();
		this.oid = oid;
		this.id = id;
		this.name = name;
		this.amount = amount;
		this.purchaseDate = purchaseDate;
		this.status = status;
		this.installments = installments;
		this.repaidCount = repaidCount;
		this.organizationName = organizationName;
		this.organizationPhone = organizationPhone;
		this.term = term;
		this.loanAmount = loanAmount;
		this.downPaymentDeposit = downPaymentDeposit;
		this.downPaymentScale = downPaymentScale;
		this.termRepaymenAmount = termRepaymenAmount;
	}

	public TradeRecord() {

	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}


	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getInstallments() {
		return installments;
	}

	public void setInstallments(Integer installments) {
		this.installments = installments;
	}


	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	public Integer getRepaidCount() {
		return repaidCount;
	}

	public void setRepaidCount(Integer repaidCount) {
		this.repaidCount = repaidCount;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public String getOrganizationPhone() {
		return organizationPhone;
	}

	public void setOrganizationPhone(String organizationPhone) {
		this.organizationPhone = organizationPhone;
	}

	public Integer getTerm() {
		return term;
	}

	public void setTerm(Integer term) {
		this.term = term;
	}

	public Double getLoanAmount() {
		return loanAmount;
	}

	public void setLoanAmount(Double loanAmount) {
		this.loanAmount = loanAmount;
	}

	public Double getDownPaymentDeposit() {
		return downPaymentDeposit;
	}

	public void setDownPaymentDeposit(Double downPaymentDeposit) {
		this.downPaymentDeposit = downPaymentDeposit;
	}

	public String getDownPaymentScale() {
		return downPaymentScale;
	}

	public void setDownPaymentScale(String downPaymentScale) {
		this.downPaymentScale = downPaymentScale;
	}

	public Double getTermRepaymenAmount() {
		return termRepaymenAmount;
	}

	public void setTermRepaymenAmount(Double termRepaymenAmount) {
		this.termRepaymenAmount = termRepaymenAmount;
	}
}
